JaCoCo 您所在的位置:网站首页 jacoco report not found JaCoCo

JaCoCo

#JaCoCo | 来源: 网络整理| 查看: 265

Prepares a property pointing to the JaCoCo runtime agent that can be passed as a VM argument to the application under test. Depending on the project packaging type by default a property with the following name is set:

tycho.testArgLine for packaging type eclipse-test-plugin and argLine otherwise.

If your project already defines VM arguments for test execution, be sure that they will include property defined by JaCoCo.

One of the ways to do this in case of maven-surefire-plugin - is to use syntax for late property evaluation :

org.apache.maven.plugins maven-surefire-plugin @{argLine} -your -extra -arguments

You can define empty property to avoid JVM startup error Could not find or load main class @{argLine} when using late property evaluation and jacoco-maven-plugin not executed.

Another way is to define "argLine" as a Maven property rather than as part of the configuration of maven-surefire-plugin:

-your -extra -arguments ... org.apache.maven.plugins maven-surefire-plugin

Resulting coverage information is collected during execution and by default written to a file when the process terminates.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有